package kata02;

public class TraverseChop {
    int[] items;

    public TraverseChop(int[] items) {
        this.items = items;
    }

    public int findIndex (int element) {
        for (int i = 0; i < items.length; i++) {
            if (items[i] == element) {
                return i;
            }
        }
        return -1;
    }
}
